import React from "react";
import { Toast, NavBar,Empty, Button } from "react-vant";
import {useNavigate} from 'react-router-dom'
const Index: React.FC = () => {
  const navigate=useNavigate()
  return (
    <div>
      <NavBar
        title="我的档案"
        onClickLeft={() => navigate(-1)}
      />
      <Empty description="还没有档案">
      <Button style={{ width: 160 }} round type="primary">
        去添加档案
      </Button>
    </Empty>
    </div>
  );
};
export default Index;
